const div = document.querySelectorAll('div');
div.addEventListener("click", function () {
    console.log(div);
})


div.forEach(item => {
    item.onclick = function () {
        console.log(item.innerHTML);
    }
})
